
#include "talk/examples/crossfirewall/xmltask/HeartBeatThread.h"

#include "talk/xmpp/constants.h"
#include "talk/xmpp/xmppclient.h"
#include "talk/xmpp/xmpptask.h"
#include "talk/xmpp/xmppengine.h"
#include "talk/xmpp/jid.h"
#include "time.h"

using namespace buzz;

HeartBeatManager::HeartBeatManager()
{
	m_state = HEART_BEAT_STOPPED;
}

HEART_BEAT_STATE HeartBeatManager::queryState()
{
	talk_base::CritScope cs(&m_crit);
	HEART_BEAT_STATE ret = m_state;
	return ret;
}

void HeartBeatManager::setState(HEART_BEAT_STATE obj)
{
	talk_base::CritScope cs(&m_crit);
	m_state = obj;
	return ;
}
